<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>${locale("login-title")}</title>
	<link rel="stylesheet" type="text/css" href="lib/easyui/themes/${skin!'default'}/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="lib/easyui/themes/icon.css"/>
	<style type="text/css">
		.label{text-align:right;}
		.text input{width:230px;}
	</style>
</head>
<body>
	
	<div id="win" class="easyui-dialog" title="${locale("login-title")}" style="width:320px;padding:10px;"
		data-options="minimizable:false,
			maximizable:false,
			closable:false,
			resizable:false,
			iconCls:'icon-save',
			buttons: [{
				text:'${locale("login-login")}',
				iconCls:'icon-ok',
				handler:function(){
					$('#form').submit();
				}
			},{
				text:'${locale("login-reset")}',
				handler:function(){
					$('#form').form('clear');
				}
			}]">
		<form id="form" method="post" action="user.login.jx">
			<table>
	    		<tr>
	    			<td class="label">${locale("login-name")}</td>
	    			<td class="text">
	    				<input class="easyui-validatebox" type="text" maxlength="20" value="admin" id="name" name="name" data-options="required:true"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td class="label">${locale("login-password")}</td>
	    			<td class="text">
	    				<input class="easyui-validatebox" type="password" maxlength="16" value="123456" id="password" name="password" data-options="required:true"/>
	    			</td>
	    		</tr>
	    	</table>
		</form>
	</div>
	
	<script type="text/javascript" src="lib/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="lib/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="lib/locale/lang-${language!'zh_CN'}.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#form').form({
				url:'user.login.jx',
				onSubmit:function(){
					if($(this).form('validate')){
						$.messager.progress();
					}else{
						return false;
					}
				},
				success:function(data){
					$.messager.progress('close');
					if($.requestSuccess(data)){
						location.href = './';
					}
				}
			});
			$("#name").focus();
			$("#name,#password").keydown(function(e){
				if(e.keyCode == 13){
					$('#form').submit();
				}
			});
		});
	</script>
</body>
</html>